home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / serial / getty_ps.000 / getty_ps / getty_ps-2.0.7i / getty.h < prev    next >
C/C++ Source or Header  |  1994-05-16  |  2KB  |  88 lines

  1. /*
  2. **    $Id: getty.h,v 2.0 90/09/19 19:59:15 paul Rel $
  3. **
  4. **    Included by all getty modules
  5. */
  6.  
  7. /*
  8. **    Copyright 1989,1990 by Paul Sutcliffe Jr.
  9. **
  10. **    Permission is hereby granted to copy, reproduce, redistribute,
  11. **    or otherwise use this software as long as: there is no monetary
  12. **    profit gained specifically from the use or reproduction or this
  13. **    software, it is not sold, rented, traded or otherwise marketed,
  14. **    and this copyright notice is included prominently in any copy
  15. **    made.
  16. **
  17. **    The author make no claims as to the fitness or correctness of
  18. **    this software for any use whatsoever, and it is provided as is. 
  19. **    Any use of this software is at the user's own risk.
  20. */
  21.  
  22. /*
  23. **    $Log:    getty.h,v $
  24. **    Revision 2.0  90/09/19  19:59:15  paul
  25. **    Initial 2.0 release
  26. **    
  27. */
  28.  
  29.  
  30. #include <malloc.h>
  31. #include <stdio.h>
  32. #include <string.h>
  33. #include <sys/types.h>
  34. #include <termio.h>
  35. #include <sys/ioctl.h>
  36. #include <fcntl.h>
  37. #include <utmp.h>
  38.  
  39. #include "config.h"
  40. #include "extern.h"
  41. #include "funcs.h"
  42. #include "mytermio.h"        /* SMR - gcc was missing a few definitions */
  43.  
  44. /*    General purpose defines
  45.  */
  46.  
  47. #ifndef    FALSE
  48. #define    FALSE    (0)
  49. #endif    /* FALSE */
  50. #ifndef    TRUE
  51. #define    TRUE    (1)
  52. #endif    /* TRUE */
  53.  
  54. #define OK    (0)
  55.  
  56. #define SUCCESS    (0)        /* normal return */
  57. #define FAIL    (-1)        /* error return */
  58.  
  59. #define    STDIN    fileno(stdin)
  60. #define    STDOUT    fileno(stdout)
  61.  
  62. #define strequal(s1, s2)    (strcmp(s1, s2) == 0)
  63. #define strnequal(s1, s2, n)    (strncmp(s1, s2, n) == 0)
  64. #define    strncopy(s1, s2)    (strncpy(s1, s2, sizeof(s1)))
  65.  
  66. typedef    struct termios    TERMIO;
  67.  
  68.  
  69. /* debug levels
  70.  */
  71. #define    D_OPT    0001        /* option settings */
  72. #define    D_DEF    0002        /* defaults file processing */
  73. #define    D_UTMP    0004        /* utmp/wtmp processing */
  74. #define    D_INIT    0010        /* line initialization (INIT) */
  75. #define    D_GTAB    0020        /* gettytab file processing */
  76. #define    D_RUN    0040        /* other runtime diagnostics */
  77. #define D_RB    0100        /* ringback debugging */
  78. #define    D_LOCK    0200        /* uugetty lockfile processing */
  79. #define D_SCH    0400        /* schedule processing */
  80. #define D_ALL    0777        /* all priorities */
  81.  
  82. #ifndef    DEBUG
  83. #define    debug()            /* define to nothing, disables debugging */
  84. #endif    /* DEBUG */
  85.  
  86.  
  87. /* end of getty.h */
  88.